Geeks Talk

Prepare for your Next Interview




Query to find all cars sold by salesman

This is a discussion on Query to find all cars sold by salesman within the SQL forums, part of the Databases category; find sales person who sold all car brands in a year I want to display the sales dealer who sold all the car brands for the present year. car brand ...


Go Back   Geeks Talk > Databases > SQL

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-04-2008
Junior Member
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gangu_d is on a distinguished road
Query to find all cars sold by salesman

find sales person who sold all car brands in a year

I want to display the sales dealer who sold all the car brands for the present year.

car brand may change year to year ie this may keep on increasing. i like to write a sql query which fetches data without using any hard code values on brand name.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-04-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
Re: Query to find all cars sold by salesman

Kindly provide table structure , sample data and your required output clearly.

Last edited by krishnaindia2007 : 01-04-2008 at 04:04 AM.
Reply With Quote
  #3 (permalink)  
Old 01-05-2008
Contributing Member
 
Join Date: Nov 2007
Location: India
Posts: 63
Thanks: 5
Thanked 8 Times in 7 Posts
sreekumar_nair_it is on a distinguished road
Re: Query to find all cars sold by salesman

Quote:
Originally Posted by gangu_d View Post
find sales person who sold all car brands in a year

I want to display the sales dealer who sold all the car brands for the present year.

car brand may change year to year ie this may keep on increasing. i like to write a sql query which fetches data without using any hard code values on brand name.
Dear gangu_d,

Please provide sample data.
It will be easy for our team members to help you better.
Also send the structure if possible.

Have a pleasant time.
Reply With Quote
  #4 (permalink)  
Old 01-08-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Query to find all cars sold by salesman

Don't except us to guess and solve your problem . Kindly pass more details on the issue.
Reply With Quote
Reply

  Geeks Talk > Databases > SQL


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Query to find structure of a table Geek_Guest SQL 12 09-01-2008 11:12 PM
regarding sql query psuresh1982 SQL 8 07-13-2007 04:20 AM
Query jescalante Oracle 4 06-25-2007 03:13 AM
Query K.K.Rajiv SQL 2 05-29-2007 11:41 PM
Query with C++ StephenRaj C and C++ 1 08-14-2006 05:09 AM


All times are GMT -4. The time now is 01:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved