difference between select column name from table name where
serviceid=2; and select max(column name) from table name
where serviceid=2;
IN ORACLE
Answers were Sorted based on User's Feedback
Answer / nishadks
Let's Say Struct of Table_Name is
Column_name Varchar, Service_id Int
Values:('AAA',2),('BBB',2),('CCC',2),('DDD',2)
ANS:
select column name from table name where
serviceid=2
ANS:
Column_name
----------------------
AAA
BBB
CCC
DDD
select max(column name) from table name
where serviceid=2;
ANS:
-------
DDD
Is This Answer Correct ? | 19 Yes | 2 No |
Answer / raghu
Let's Say Struct of Table_Name is
Column_name Varchar, Service_id Int
Values:('AAA',2),('BBB',2),('CCC',2),('DDD',2)
ANS:
select column name from table name where
serviceid=2
ANS:
Column_name
----------------------
AAA
BBB
CCC
DDD
select max(column name) from table name
where serviceid=2;
ANS:
-------
AAA
Is This Answer Correct ? | 2 Yes | 2 No |
Let's Say Struct of Table_Name is
Column_name Varchar, Service_id Int
Values:('Z',2),('Y',2),('B',2),('C',2)
ANS:
select column name from table name where
serviceid=2
Will be 'C'
ANS:
select max(column name) from table name
where serviceid=2;
Will Be 'Z'
Is This Answer Correct ? | 3 Yes | 13 No |
What is the stuff and how does it differ from the replace function?
What are the difference between primary key and unique key? : sql server database administration
How many .ndf files can we create in Sql server 2005?
Create Index myIndex On myTable(myColumn) What type of Index will get created after executing the above statement
How do you start single user mode in clustered installations?
How to drop an existing schema in ms sql server?
what is the difference between delete table and truncate table commands? : Sql server database administration
what are isolation levels? : Sql server database administration
How to return the second 5 rows in ms sql server?
What is the joins and how many types of Joins in sql server a diffrentiate ever one give a suaitable query
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation