[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/03/2009 at 04:33AM PST, ID: 24866786 | Points: 500
[x]
Attachment Details

code to make it work with MSSQL

Asked by myselfrandhawa in MS SQL Server, Databases Miscellaneous, ColdFusion Application Server

Tags: Coldfusion, sql server, mysql

The code is in Mysql Format and the same will work on MSSQL or neeed some Change:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
DELETE a.*, t.*, c.*
	FROM (ig_imagegall a LEFT JOIN ig_imagecomm c ON a.ID = c.ImageID) 
    LEFT JOIN ig_testimonials t ON a.ID = t.ImageID
	WHERE a.ID IN (<cfqueryparam value="#getImg2.ID#" cfsqltype="cf_sql_numeric" list="yes">)
    
another Query: 
SELECT ImageID, CatName, (SELECT count(id) 
		FROM 
		ig_imageGall AS images 
		WHERE 
        valid = <cfqueryparam cfsqltype="cf_sql_numeric" value="1"> 
        AND images.category = outimages.catName) AS categoryCount 
		FROM 
		ig_imagegallCat AS outimages 
		ORDER BY 
		CatName 
		ASC
[+][-]11/03/09 04:41 AM, ID: 25728315

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 04:48 AM, ID: 25728373

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 04:49 AM, ID: 25728376

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 05:03 AM, ID: 25728474

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 05:50 AM, ID: 25739248

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 05:58 AM, ID: 25739321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 06:03 AM, ID: 25739354

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 08:49 AM, ID: 25741250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625