Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
| Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2018, 09:58 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using SQL in MS Access - Wanting to remove row duplication and create columns with me

I'm working with a MS Access 2016 Database that was used by a client using a software based e-commerce application that was very old and dated.

I've created an SQL statement to abstract the data I need for creation of a CSV for Shopify



The SQL gets what I want, but creates many duplications of content due to the way the data is held in the Database,

There's a table in the Database called Variable that holds variable definitions created by the end user when using the e-commerce software. Such as:- if a Product was to have multiple images associated with it they could create ExtraImage1, ExtraImage2 which then be available for all products

There's a second table called UserDefinedVariables that holds the values of the Variables that are associated to products.

My issue is the above SQL gives the output of:



The repetition of content for sString1 to 4 is expected as these are product dropdown content. However, in my Database I want to output the values of variables ExtraImage1 to 4 without it grouping them as it does. Is there a way I could state in SQL when there's an occurrence of ExtraImage1 found in sName create a column header called ExtraImage1 and place its associated value from UserDefinedProperties.sValue directly under it in the new column?

Last edited by gazbutcher16; February 14th, 2018 at 04:21 PM..




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass multiple value as parameters to MS access Report from MS access sql code mukta Access 0 April 13th, 2012 07:43 AM
Problem in inserting a new row in MS Access yzlin04 VB.NET 2002/2003 Basics 2 July 18th, 2007 11:11 PM
Problem with inserting a new row in MS Access yzlin04 VB Databases Basics 0 July 15th, 2007 11:23 PM
Trigger question for columns with text in MS sql s robtay SQL Server 2000 1 November 12th, 2006 03:21 PM
Insert row into MS-ACCESS database ITladybug ADO.NET 1 January 28th, 2006 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.