473,473 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unable to get Query Results to display in a single row

2 New Member
Hello,

I am currently doing a report in Reporting Services. I can pull the data up fine and have it layed out close to what the user is wanting with one exception. One of the fields I am having to pull about 18 different types of that field. For each one it brings up is a separate record. Which is fine because I just change the layout in Reporting Services and put the 18 items below the 1 main item. However the client would like all of the items on one row so that she can export it to excel and sort the columns. How would I do this? Below is my Query, The ten items I am referring to is the FSLog.IDNum and FSSetup.Discription; IDNum being the Unique identifier and Description which pulls from a separate table (FSSetup) is the string name of the item. These are basically File Status items. Thank you again for you help.

SELECT DISTINCT
ORDERS.GFNo, property.Address AS Expr1, property.City AS Expr2, property.State AS Expr3, FSLog.IDNum, FSSetup.Description, FSLog.CompletedDate,
FSLog.DueDate, property.User3 AS Expr4, property.User2 AS Expr5, ORDERS.PlaceOfClosing, ORDERS.Customer, ORDERS.OtherFileNum, AGENT.Name,
AGENT_1.Name AS Expr6, AGENT_2.Name AS Expr7
FROM ORDERS INNER JOIN
FSLog ON ORDERS.GFNo = FSLog.GFNo INNER JOIN
property ON ORDERS.GFNo = property.GFNo INNER JOIN
FSSetup ON FSLog.IDNum = FSSetup.IDNum INNER JOIN
AGENT ON ORDERS.Referral = AGENT.AgentNum INNER JOIN
AGENT AS AGENT_1 ON ORDERS.PlaceOfClosing = AGENT_1.AgentNum INNER JOIN
AGENT AS AGENT_2 ON ORDERS.Customer = AGENT_2.AgentNum
WHERE (ORDERS.RegID = 5) AND (FSLog.IDNum = 269 OR
FSLog.IDNum = 271 OR
FSLog.IDNum = 273 OR
FSLog.IDNum = 275 OR
FSLog.IDNum = 276 OR
FSLog.IDNum = 277 OR
FSLog.IDNum = 278 OR
FSLog.IDNum = 280 OR
FSLog.IDNum = 283 OR
FSLog.IDNum = 285 OR
FSLog.IDNum = 286 OR
FSLog.IDNum = 289 OR
FSLog.IDNum = 292 OR
FSLog.IDNum = 295 OR
FSLog.IDNum = 296 OR
FSLog.IDNum = 297 OR
FSLog.IDNum = 298 OR
FSLog.IDNum = 299 OR
FSLog.IDNum = 300)

FSSetup contains

IDNUM Discription

1 Order Item
2 Receieve Item
3 Send Item

Where

FSLog contains

IDNUM Completed Date Due Date
1 1/1/2007 1/15/2007
2 2/15/2007 2/10/2007


Etc... Basically FSlog is the log for the order and FSSetup stores the descriptions of the diffrent Order Status items. With IDNum being the Unique Identifer and get each description into its own Column please
Sep 14 '07 #1
0 1435

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Bacci | last post by:
I have two tables. The first is "Locations" which has 52,000 zip codes w/cooresponding latitudes and longitudes. The second "Suppliers" has 2,000 company names and addresses. The user enters a...
3
by: Mike Cocker | last post by:
Hello, I'm quite weak at PHP, so I was hoping to get some help understanding the below code. First off, I'm trying to create a "query form" that will allow me to display the results on my...
7
by: knoak | last post by:
Hi there, I have a table with items in it. Table contents are: id, title, text, combination Each product has a few other products with which it can be combined. In the 'combination'- field...
7
by: vnl | last post by:
I'm trying to run a SQL query but can't find any records when trying to select a certain date. Here's the sql: SELECT field 1, field2, date_and_time, FROM table1 WHERE date_and_time =...
1
by: Antonello Calabrò | last post by:
Hi all, I created a webservice that execute a sql query on demand. If I try to execute the query from the WebForm, all is ok. If I try to execute the query from a normal Windows Application,...
24
by: clare at snyder.on.ca | last post by:
I have a SQL query I need to design to select name and email addresses for policies that are due and not renewed in a given time period. The problem is, the database keeps the information for every...
2
by: phillip.s.powell | last post by:
SELECT s.id, s.student_first_name, s.student_last_name, IF(s.student_ethnicity_interest_other IS NOT NULL AND s.student_ethnicity_interest_other != '', CONCAT(s.student_ethnicity_interest_other,...
9
by: valeberry | last post by:
index <?php include ("conn.php"); require_once("tabs.php"); ?> <html> <head> <?php tabs_header(); ?> </head> <body>
1
by: Arli | last post by:
I have the following linked tables: tblMainPL is my main table that I need to pull the information in from. It has the following fields: Autonumber1 -PK set as autonumber Date - short date...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.