Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:43 AM
Problem in inserting a new row in MS Access yzlin04 VB.NET 2002/2003 Basics 2 July 19th, 2007 12:11 AM
Problem with inserting a new row in MS Access yzlin04 VB Databases Basics 0 July 16th, 2007 12:23 AM
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



All times are GMT -4. The time now is 02:00 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.