ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  MySQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
SELECT country,city
FROM customers 
GROUP BY country
ORDER BY city DESC

 Question Submitted By :: Nitin
I also faced this Question!!     Rank Answer Posted By  
 
  Re: SELECT country,city FROM customers GROUP BY country ORDER BY city DESC
Answer
# 1
is right or not
 
Is This Answer Correct ?    3 Yes 0 No
Nitin
 
  Re: SELECT country,city FROM customers GROUP BY country ORDER BY city DESC
Answer
# 2
this is right coz here order by clause is at the end of 
query...
 
Is This Answer Correct ?    6 Yes 0 No
Prajakta
 
 
 
  Re: SELECT country,city FROM customers GROUP BY country ORDER BY city DESC
Answer
# 3
This is wrong because there is no aggregate function in the 
query when a group by clause is used.

The above query could be like:

1. SELECT country, count(city)
2. FROM customers 
3. GROUP BY country
4. ORDER BY country DESC

* Correction at line 1 & 4.
 
Is This Answer Correct ?    1 Yes 1 No
Manoj Pandey
 

 
 
 
Other MySQL Interview Questions
 
  Question Asked @ Answers
 
The structure of table view buyers is as follows: +----------------+-------------+------+-----+---------+----- -----------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----- -----------+ | user_pri_id | int(15) | | PRI | NULL | auto_increment | | userid | varchar(10) | YES | | NULL | | +----------------+-------------+------+-----+---------+----- -----------+ the value of user_pri_id the last row 2345 then What will happen in the following conditions? Condition1: Delete all the rows and insert another row then. What is the starting value for this auto incremented field user_pri_id , Condition2: Delete the last row(having the field value 2345) and insert another row then. What is the value for this auto incremented field user_pri_id  2
What are CSV tables?  1
how to find missing numbers between two order numbers; and dates ?  1
How can increase the performance of MySQL select query? Span-Systems2
I have two sql database at different PC.how can link b/w database and database tables.  1
What?s the difference between query_cache_type 1 and 2?  1
What are the advantages of stored procedures, triggers, indexes?  2
SQL: 1. Write a queryto retrieve the author who was published a book at the youngest age? 2. write a query to retrieve the no. of books published a each year in various languages? 3. write a query to retrieve no. of books published by them only those authors who have published more than 1 book? 4. write a query to retrieve who has not published any books during the year 2006? 5. write a query to retrieve the authors who has published any books during the birth date write this query in 2 ways 1)joins 2)sub query 6. write a query to retrieve all the books which was published during jan 2007 & title containing India or published in the language hindi? 1. table name is liberary managemnt and two column is there one is authors and another one is books . 2.four fields will comes under authours like nationality, birthdate ,first-language,second-language 3.four fields will comes under books like authour,title ,language,publish date to write query using this details Covansys3
How can we change the name of a column of a table?  4
What are MySQL transactions?  1
what is the difference between MyISAM and INNO DB in MySQL with the Advantage and disadvantage ABC3
how many ways we can get the current date in mysql?  1
about foregine  2
How do you change a password for an existing user via mysqladmin?  1
How do you start and stop MySQL on Windows?  2
how do i list constraints in my database by using sql server2000?  1
What does tee command do in MySQL?  1
what are the main differences between MyISAM and InnoDB table storage structures ? what are the advantages and disadvantages in usage of these ? Tesco8
How do you prevent MySQL from caching a query?  1
What is the difference between mysql_fetch_array and mysql_fetch_object? CTS2
 
For more MySQL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com