asked on
ASKER
SELECT *
FROM tads INNER JOIN tAdSections ON tAdSections.SectionID = tAdAds.sectionCode
WHERE (CAD = 1)
<cfif SectionID lt 1200>
<cfset SectionID = 11>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID lt 1300>
<cfset SectionID = 12>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID lt 1500>
<cfset SectionID = 14>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID lt 1700>
<cfset SectionID = 16>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID eq 1625>
<cfset SectionID = 1625>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID eq 1616>
<cfset SectionID = 1616>
and
sectionCode like '#sectionID#%'
<cfelseif SectionID lt 1800>
<cfset SectionID = 17>
and
sectionCode like '#sectionID#%'
</cfif>
ASKER
ASKER
Microsoft SQL Server 2005 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. It includes support for managing XML data and allows a database server to be exposed over web services using Tabular Data Stream (TDS) packets encapsulated within SOAP (protocol) requests.
TRUSTED BY
select *
from table1
where field1 = @Parameter / 100