Relative Content

Tag Archive for sqlms-access

Query the lowest sub-value where the main value is grouped

I am trying to create a basis for a list of products in an MS Access Query. The basis must later be used in a form where the products are visualized with only one of the many images associated with each product.
The image name is calculated with an expression field based on the product ID and color ID, which is also the composite primary key for the table.

Select All Unique Values In SQL Table With Additional Information

I’m trying to find the first SeqGrp and SeqNum of the first unique values TaxGroupCode. I had this query in a MSACCESS query (Shown below), but we recently started using SQL 2008 instead. However, it seems “FIRST” isn’t a valid function in SQL (at least in this version).

Microsoft Access Report Eliminate Duplicates

I have a Microsoft Access database which has quite a few fields. For the purposes of this report that I am generating, I need to essentially create a list of names. There are some names that are in the database multiple times for different reasons. I need my report to only list each name one time. If I set the hide duplicates on Last Name only, it could eliminate some entries that I want shown, as multiple people can have the same last name. Same issue if I hide duplicates on First Name only. If I set the flag on both fields it compounds the issue. How do I form the query to de-duplicate the data based on Last Name & First Name?