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 10140what is the difference between group and having give an example with query and sample output
7 10195How To Change Column Ordinal Position in SQL Server 2005 using Query i.e I Want To Add Column at Particular Ordinal Position in SQL Server 2005
2 9527How can i give the restrictions for the data entry, if i wish to enter only I ,II, III, IV in the grade actegory of student table?
3 61491. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do
1 2542
What is the difference between upgrade and migration in sql server?
Can you index views?
What are the different types of subquery?
List out the different types of locks available in sql server?
How do I create a trace in sql server?
Does view occupy space?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
What are the different subsets of sql?
When should you use an instead of trigger?
How to provide default values to function parameters?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
Explain “row_number()” in sql server with an example?
Can one drop a column from a table?
What is self contained sub query?
Can we shrink data file in sql server?