Click here to Skip to main content
15,886,199 members
Home / Discussions / Database
   

Database

 
QuestionReady to give up on MySQL - is PostgreSQL better? Pin
Wombaticus1-Jun-14 22:09
Wombaticus1-Jun-14 22:09 
AnswerRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Jörgen Andersson1-Jun-14 22:37
professionalJörgen Andersson1-Jun-14 22:37 
GeneralRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Wombaticus1-Jun-14 22:43
Wombaticus1-Jun-14 22:43 
GeneralRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Jörgen Andersson1-Jun-14 23:08
professionalJörgen Andersson1-Jun-14 23:08 
QuestionA query with lot of inner queries Pin
indian14329-May-14 12:41
indian14329-May-14 12:41 
AnswerRe: A query with lot of inner queries Pin
Mycroft Holmes29-May-14 13:02
professionalMycroft Holmes29-May-14 13:02 
GeneralRe: A query with lot of inner queries Pin
indian14329-May-14 13:09
indian14329-May-14 13:09 
GeneralRe: A query with lot of inner queries Pin
Mycroft Holmes29-May-14 14:08
professionalMycroft Holmes29-May-14 14:08 
I would start from scratch using the SQL Server view builder to get the table in and the joins. SSMS may create something similar but it may create the joins in a non nested structure which is what you are looking for to make it a supportable syntax.

If nothing else works then winkle out the table hierarchy from the syntax and build it manually by putting the main transaction table into the from and manually adding te rest of the table required.

I would also consider creating some views to simplify the structure EG your SponsorOrderDetail could be turned into a view to include the product and sponsor details required for the query.
Never underestimate the power of human stupidity
RAH

AnswerRe: A query with lot of inner queries Pin
Jörgen Andersson29-May-14 22:20
professionalJörgen Andersson29-May-14 22:20 
GeneralRe: A query with lot of inner queries Pin
Mycroft Holmes30-May-14 1:50
professionalMycroft Holmes30-May-14 1:50 
GeneralRe: A query with lot of inner queries Pin
Jörgen Andersson30-May-14 3:15
professionalJörgen Andersson30-May-14 3:15 
GeneralRe: A query with lot of inner queries Pin
indian14330-May-14 9:08
indian14330-May-14 9:08 
GeneralRe: A query with lot of inner queries Pin
Jörgen Andersson30-May-14 9:24
professionalJörgen Andersson30-May-14 9:24 
GeneralRe: A query with lot of inner queries Pin
indian14330-May-14 9:05
indian14330-May-14 9:05 
GeneralRe: A query with lot of inner queries Pin
Mycroft Holmes30-May-14 12:46
professionalMycroft Holmes30-May-14 12:46 
QuestionProblem with tempdb - MSSQL Pin
Milan K SK28-May-14 4:32
Milan K SK28-May-14 4:32 
AnswerRe: Problem with tempdb - MSSQL Pin
Kornfeld Eliyahu Peter28-May-14 6:39
professionalKornfeld Eliyahu Peter28-May-14 6:39 
QuestionSQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Seuss27-May-14 11:10
Seuss27-May-14 11:10 
AnswerRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Mycroft Holmes27-May-14 12:45
professionalMycroft Holmes27-May-14 12:45 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Seuss27-May-14 20:10
Seuss27-May-14 20:10 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Mycroft Holmes27-May-14 20:22
professionalMycroft Holmes27-May-14 20:22 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Seuss27-May-14 22:14
Seuss27-May-14 22:14 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
NitinDhapte16-Jun-14 1:55
NitinDhapte16-Jun-14 1:55 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Seuss27-May-14 22:28
Seuss27-May-14 22:28 
GeneralRe: SQL Server 2012 Agent Job & stored procedure issue URGENT Pin
Mycroft Holmes27-May-14 22:55
professionalMycroft Holmes27-May-14 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.