473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need some help with First Criteria statement or DISTINCT

Hello, I need some help with First Criteria statement or DISTINCT. I
would like the Par # column to have all distinct or just the first
value it encounters. I tried to add the criteria in access, but it
still outputs the same data as before. I already have two first
criterias in the query , I am not sure if that is causing the problem.
If someone could help me make the Par # column distinct also or using
the first criteria, that would be great. Thanks in adv

SELECT newPARdata.[PAR #], newPARdata.[EPAR?] AS Expr1,
newPARdata.[PAR Type], First(NZ(CNames.[CompD],"OTHER")) AS Expr2,
First(NZ(CNames.COMPID,"OTHER")) AS Expr3, newPARdata.[Opened Date],
newAPARdata.[Closure Date], newPARdata.[Sev], newPARdata.PE,
newPARdata.Hip, newPARdata.Out, newPARdata.[PGT #],
newAPARdata.[FLevel], newPARdata.[PGT Target], NZ([PGT Closed
Date],"Empty") AS [PTF Closed]
FROM newPARdata LEFT JOIN CNames ON newPARdata.[CompoID]=Names.COMPID
GROUP BY newPARdata.[PAR #], newPARdata.[EPAR?], newPARdata.[PAR
Type], newPARdata.[Opened Date], newPARdata.[Closure Date],
newAPARdata.[PAR Sev], newPARdata.PE, newPARdata.Hip,
newPARdata.Outage, newAPARdata.[PTF #], newPARdata.[FLevel],
newPARdata.[PGT Target], NZ([PGT Closed Date],"Empty")
ORDER BY newPARdata.[PAR #];
Nov 13 '05 #1
0 1122

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: soni29 | last post by:
hi, i need some help with a query, also to find out if this is even possible with sql. currently i have a table with the following data: CustomerNumber CustomerBranch 123 NULL 123 1...
3
by: Robby McGehee | last post by:
I need this to work: SELECT FROM WITH (NOLOCK) where ='a' GROUP BY , HAVING COUNT () > 1 The problem is that I get an error that needs to be in the GROUP BY clause or aggregate function. if...
1
by: Evan | last post by:
Hi guys, I have a database table (documents) with a structure that looks like this: docID docName keyWords 1 testTitle01.doc dog,cat,bob 2 testTitle02.doc ...
11
by: kimberly.shaffer | last post by:
I think I am so lost!! Please someone write out DCONCAT explanation. Is it DConcat("FieldYouWantToConcatenate","TableFieldIsLocatedIn","WHATIDGOESHERE", "@SignOrOtherDelimiter",...
7
by: Ladysniper | last post by:
DESPERATE doesn't begin to describe it. Can someone PLEASE tell me what is WRONG with this code? Now..a bit of background. It is a search results page for http://www.azsoma.info/directory.htm....
6
by: Twobridge | last post by:
I hope someone can help me out with my problem. I have found a sql statement that basically pulls all bills filed within a certain time period and the payments made on those bills with in the...
9
by: pic078 via AccessMonster.com | last post by:
I need serious help - I have a frontend/backend Access database (2 MDE Files) that remains stuck in task manager after exiting the application - you can't reopen database after exiting as a result...
0
by: LanaR | last post by:
Hello, one sql statement is causing severe performance issue. The problem occurs only in UDB environment, the same statemnt on the mainframe is running fine. I have an explain output from the sql....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...

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.