Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Combined SQL query within the Database Design forums, part of the Databases category; , i was trying to get one sql statement to make it possible, but i am not sure is it possible to make a single sql statement . We have ...
|
|||||||
| Database Design Disucss if you have any issues with Database Design and Concepts |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Combined SQL query
, i was trying to get one sql statement to make it possible, but i am not sure is it possible to make a single sql statement . We have data as cost_type branchplant_code description 1 inclusion_value x1 **** n x1 5001 y x1 5033 y x1 5034 y x1 5035 y x2 **** n x2 5001 y x2 5019 y x2 5033 y x2 5034 y x2 5035 y x3 **** . N x3 5001 . Y x3 5033 . Y x3 5034 . Y x3 5035 . Y x4 **** . N x4 5001 . Y x4 5035 . Y x5 **** . N x6 **** . Y x7 **** . Y x8 **** . Y x9 **** . N is it possible to have one sql statement which will give output as ; crelembranchplant hasdutyrate hasadminoh hasfreightrate haswrhsoh hasantidumpingduty hascoverscrapduty hasdomesticrawfreight hasdies hasothermisc description 5001 x x x x x x x 5019 x x x x 5033 x x x x x x 5034 x x x x x x 5035 x x x x x x x x1 , x2 ….x9 are replaced with hasdutyrate, i could get part by part but could not combine . Thanks
|
| Sponsored Links |
|
|||
|
Re: Combined SQL query
Have a look at basics of ER Diagram (www . infocom . cqu . edu . au/Courses/spr2000/95169/Extra_Examples/ERD . htm) and try making one for yourself. If you face any issue do post here for help.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sql query | max__payne_nishant | SQL | 3 | 09-20-2008 02:43 PM |
| sql query help | kothojubhaskar | SQL | 3 | 09-13-2008 02:53 AM |
| Update query using sub query | ravikumar.drk99 | SQL | 5 | 09-01-2008 04:40 AM |
| query | ananth3335 | C and C++ | 1 | 07-14-2008 03:37 AM |
| Query | jescalante | Oracle | 4 | 06-25-2007 03:13 AM |