how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL Server Interview Questions

i have table students with fields classname,studname select * from students classname studname 1 xxxxx 1 yyyy 1 zzzz 2 qqqq 2 tttt 3 dsds 3 www i want the output should be No of students in class 1 : 3 No of students in class 2 : 2 No of students in class 3 : 2

5 Answers   HCL, ZX,


What is the cartesian product of table?

0 Answers  


What is a collation?

0 Answers  


What is the difference between system objects and user objects?

0 Answers   HCL,


What is the difference between for trigger and after trigger?

0 Answers  






If we shrink the Databse and Files, how much size is decreased?

1 Answers   TCS,


How raid can influence database performance?

0 Answers  


Explain how to use linked server?

0 Answers  


What is a cursor in SQL Server 2000 and their types?

8 Answers  


What is the use of Port no?

1 Answers   Wipro,


What purpose does the model database server?

0 Answers  


Explain the types of indexes.

0 Answers   Accenture,


Categories