Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



SQL: 1. Write a queryto retrieve the author who was published a book at the youngest age? 2. wri..

Answer / vijay

select count(books),year(publish date)as
Year_Published,language from library management a,books b
where a.authour=b.authour group by Year_Published;

Is This Answer Correct ?    4 Yes 0 No

SQL: 1. Write a queryto retrieve the author who was published a book at the youngest age? 2. wri..

Answer / vijay

select count(a.books),year(b.publish date)as
Year_Published,language from library management a,books b
where a.authour=b.authour group by Year_Published;

Is This Answer Correct ?    2 Yes 0 No

SQL: 1. Write a queryto retrieve the author who was published a book at the youngest age? 2. wri..

Answer / sagar

Q 3) Select lb.author,count(b.books) as total_books from
books b, library_mgmt lb where b.author = lb.author group
by books having total_books >1;

Q 4) select b.author from books b where year(b.publish_date)
not in('2006');

Q5) Select b.author from books b ,author a where year
(a.birthdate) = year(b.publish_date) and a.author=b.author;

Q6) Select b.books from books b where year(b.publish_date)in
('2007') and (b.title like '%India%' or b.language='hindi');

Is This Answer Correct ?    1 Yes 0 No

SQL: 1. Write a queryto retrieve the author who was published a book at the youngest age? 2. wri..

Answer / nani

select * from published book where min(age);

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More MySQL Interview Questions

A select query over a large table runs very slow because of the growing number of entries in that table. What different measures could be taken to improve speed?

5 Answers  


What is the difference between mysql_fetch_array and mysql_fetch_object?

4 Answers   CTS,


What is a trigger? How you can create a trigger in mysql?

0 Answers  


What is flush privileges in mysql?

0 Answers  


Can you tell the difference between ereg_replace() and eregi_replace()?

0 Answers  


Explain advantages of MyISAM over InnoDB?

1 Answers  


Is mysql and sql are same?

0 Answers  


What is the size of mysql database?

0 Answers  


What language is mysql written in?

0 Answers  


What is MySQL?

0 Answers  


What are different types of queries?

0 Answers  


What are stored procedures and functions?

0 Answers  


Categories