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.Discrip tion; 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.Addres s AS Expr1, property.City AS Expr2, property.State AS Expr3, FSLog.IDNum, FSSetup.Descrip tion, FSLog.Completed Date,
FSLog.DueDate, property.User3 AS Expr4, property.User2 AS Expr5, ORDERS.PlaceOfC losing, ORDERS.Customer , ORDERS.OtherFil eNum, 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.PlaceOfC losing = AGENT_1.AgentNu m INNER JOIN
AGENT AS AGENT_2 ON ORDERS.Customer = AGENT_2.AgentNu m
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
0 1453 Sign in to post your reply or Sign up for a free account.
Similar topics |
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 zip code and the cooresponding latitude and longitude is
return.
$sql = "SELECT l.latitude, l.longitude ";
$sql .= "FROM Locations l";
$sql .= "WHERE l.zipcode = ".$zip;
|
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 screen. I grabbed this code from the net
hoping that I could tweak it for my needs. I'm using MySQL, PHP and IIS and
they all are running fine. As the code is, it will display the form, but it
won't display my result(s). Any suggestions?
Cheers,
|
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 is an array of 3 other id's the product
can be combined with. (e.g. 78-34-94)
|
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 = '01-SEP-02'
I'm getting no results. The date_and_time field is formatted like this:
2002-SEP-02 00:01:04
|
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, all is ok.
The WebService run correctly.. but if I try to call the
Webservice from a SmartDeviceApplication the program crash
and the debug message is:
| |
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 renewal in
the history of the policyholder.
The information is in 2 tables, policy and customer, which share the
custid data. The polno changes with every renewal Renewals in 2004
would be D, 2005 S, and 2006 L. polexpdates for a given customer...
|
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, ',',
GROUP_CONCAT(e.ethnicity_name ORDER BY
upper(e.ethnicity_name))),
GROUP_CONCAT(e.ethnicity_name ORDER BY upper(e.ethnicity_name))
) AS ethnicity_name
|
by: valeberry |
last post by:
index
<?php
include ("conn.php");
require_once("tabs.php");
?>
<html>
<head>
<?php tabs_header(); ?>
</head>
<body>
|
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 format-example: (10/22/08)
Load Number -Number-Single (should not be higher than 35-40 per day)
WorkOrder -Text- 50 (string of letters and numbers of varying length)-example-KR53103 2625000-48
Badge -text- (employee badge number)-example-c12345
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |