Explain the general syntax for a SELECT statements covering
all the options.
Answers were Sorted based on User's Feedback
Answer / us
SELECT select_list
[INTO new_table_]
FROM table_source
[WHERE search_condition]
[GROUP BY group_by_expression]
[HAVING search_condition]
[ORDER BY order_expression [ASC | DESC]
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / rosemary masha
select* from table name
where last name='Faina'
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / dinesh sharma
select * from tablename(select all fields of the tables)
select f1,f2 from tablename (select selected fields(like
f1,f2)
select f1,f2,2 [f3] from tablename(select selected fields
plus one fields having default value is 2)
Is This Answer Correct ? | 0 Yes | 6 No |
You have a table with three columns: amount1, amount2, and amount3 in a single row only one of these three columns will have a value and the other two will be null. Write a sql query to retrieve the values from these columns?
What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?
Explain about a primary key?
How to generate OIDS
what is difference between primary key and unique key ?
Given an employee table, how would you find out the second highest salary?
What are the constraints on severity level in raiseerror?
How can you log an error to the server event log from a stored procedure?
Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.
Explain about relational operator join?
What are the types of database model?
How is data stored in dbms?