Skip to main content
edited body
Source Link
AA.SC
  • 4.1k
  • 4
  • 27
  • 44
  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should tobe transferred to Section1 and this this will result in same query. AM I right?

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this this result in same query. AM I right?

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should be transferred to Section1 and this will result in same query. AM I right?

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

deleted 4 characters in body
Source Link
AA.SC
  • 4.1k
  • 4
  • 27
  • 44
  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this willthis result in same query. AM I right?

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this will result in same query.

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this this result in same query. AM I right?

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

added 74 characters in body
Source Link
AA.SC
  • 4.1k
  • 4
  • 27
  • 44
  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this will result in same query.

  2. Same senarioscenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

and by removing section2 and section6 we can avoid extra conditions

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this will result in same query.

  2. Same senario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

  1. Since Section2 has all tables that Section1 has with same join conditions therefore filtering condition and TableFour.Column16 >= @StartDate and TableFour.Column16< @EndDate of section2 should to transferred to Section1 and this will result in same query.

  2. Same scenario is with section6 which has all tables that Section1 but with one extra filter statement and TableFive.Column12=@Column12

and by removing section2 and section6 we can avoid extra conditions

added 3 characters in body; edited tags
Source Link
Kin Shah
  • 62.4k
  • 6
  • 122
  • 241
Loading
Source Link
AA.SC
  • 4.1k
  • 4
  • 27
  • 44
Loading