Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:29 AM
google@voyagercomponents.com
 
Posts: n/a
Default Need help finishing complex query.

Or, at least it seems complex to me.
I need help on my "Dead Stock" report. It seemed pretty simple, but
I'm discovering it is MUCH more complex than I had anticipated.
I'm not quite sure which info you would and wouldn't want, so I'm just
going to lay it ALL out.

We need to list all Stocklines which are older than 01/01/2004, and
under Part Numbers which have neither been Quoted nor Sold after
01/01/2000.


This involves these Tables.Fields:

Part.PartId
Part.Number

Stockline.PartId
Stockline.StockId
Stockline.DateEntered
Stockline.Location
Stockline.Quantity
Stockline.Manufacturer
Stockline.DateCode
Stockline.ConsignmentCode


Quote.QuoteId
Quote.Date

QuoteItem.QuoteId
QuoteItem.PartId


SalesOrder.SalesOrderId
SalesOrder.Date

SOItem.SalesOrderId
SOItem.PartId


This is what I have so far:

SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
Stockline.Manufacturer, Stockline.DateCode, Stockline.ConsignmentCode
FROM Stockline
LEFT JOIN SOItem
ON Stockline.PartId=SOItem.PartID
LEFT JOIN QuoteItem
ON Stockline.PartId=QuoteItem.PartID
WHERE SOItem.PartID is NULL
AND QuoteItem.PartID is NULL
AND Stockline.DateEntered<2004-01-01

This completes nicley, without any errors, but I can't figure out how
to finish it off.
I need to include the Part.Number which coincides to each
Stockline.PartId, and limit it to items where the SalesOrder.Date and
Quote.Date are either <2000-01-01 or NULL

PLEASE HELP.
-Mo

Additionally, I want to make sure that the LEFT JOIN's are achieving
thier intended purposes.
Would the second LEFT JOIN join to the results of the first JEFT JOIN,
or the Stockline table?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:29 AM
Captain Paralytic
 
Posts: n/a
Default Re: Need help finishing complex query.

On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:
> Or, at least it seems complex to me.
> I need help on my "Dead Stock" report. It seemed pretty simple, but
> I'm discovering it is MUCH more complex than I had anticipated.
> I'm not quite sure which info you would and wouldn't want, so I'm just
> going to lay it ALL out.
>
> We need to list all Stocklines which are older than 01/01/2004, and
> under Part Numbers which have neither been Quoted nor Sold after
> 01/01/2000.
>
> This involves these Tables.Fields:
>
> Part.PartId
> Part.Number
>
> Stockline.PartId
> Stockline.StockId
> Stockline.DateEntered
> Stockline.Location
> Stockline.Quantity
> Stockline.Manufacturer
> Stockline.DateCode
> Stockline.ConsignmentCode
>
> Quote.QuoteId
> Quote.Date
>
> QuoteItem.QuoteId
> QuoteItem.PartId
>
> SalesOrder.SalesOrderId
> SalesOrder.Date
>
> SOItem.SalesOrderId
> SOItem.PartId
>
> This is what I have so far:
>
> SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
> Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
> Stockline.Manufacturer, Stockline.DateCode, Stockline.ConsignmentCode
> FROM Stockline
> LEFT JOIN SOItem
> ON Stockline.PartId=SOItem.PartID
> LEFT JOIN QuoteItem
> ON Stockline.PartId=QuoteItem.PartID
> WHERE SOItem.PartID is NULL
> AND QuoteItem.PartID is NULL
> AND Stockline.DateEntered<2004-01-01
>
> This completes nicley, without any errors, but I can't figure out how
> to finish it off.
> I need to include the Part.Number which coincides to each
> Stockline.PartId, and limit it to items where the SalesOrder.Date and
> Quote.Date are either <2000-01-01 or NULL
>
> PLEASE HELP.
> -Mo
>
> Additionally, I want to make sure that the LEFT JOIN's are achieving
> thier intended purposes.
> Would the second LEFT JOIN join to the results of the first JEFT JOIN,
> or the Stockline table?


What would be really helpful is some phpMyAdmin exports of the table
schemas and a few items of data in the associated INSERT statement
accompanied by the expected results from that data.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:29 AM
Mo
 
Posts: n/a
Default Re: Need help finishing complex query.

On Nov 2, 2:00 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:
>
>
>
>
>
> > Or, at least it seems complex to me.
> > I need help on my "Dead Stock" report. It seemed pretty simple, but
> > I'm discovering it is MUCH more complex than I had anticipated.
> > I'm not quite sure which info you would and wouldn't want, so I'm just
> > going to lay it ALL out.

>
> > We need to list all Stocklines which are older than 01/01/2004, and
> > under Part Numbers which have neither been Quoted nor Sold after
> > 01/01/2000.

>
> > This involves these Tables.Fields:

>
> > Part.PartId
> > Part.Number

>
> > Stockline.PartId
> > Stockline.StockId
> > Stockline.DateEntered
> > Stockline.Location
> > Stockline.Quantity
> > Stockline.Manufacturer
> > Stockline.DateCode
> > Stockline.ConsignmentCode

>
> > Quote.QuoteId
> > Quote.Date

>
> > QuoteItem.QuoteId
> > QuoteItem.PartId

>
> > SalesOrder.SalesOrderId
> > SalesOrder.Date

>
> > SOItem.SalesOrderId
> > SOItem.PartId

>
> > This is what I have so far:

>
> > SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
> > Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
> > Stockline.Manufacturer, Stockline.DateCode, Stockline.ConsignmentCode
> > FROM Stockline
> > LEFT JOIN SOItem
> > ON Stockline.PartId=SOItem.PartID
> > LEFT JOIN QuoteItem
> > ON Stockline.PartId=QuoteItem.PartID
> > WHERE SOItem.PartID is NULL
> > AND QuoteItem.PartID is NULL
> > AND Stockline.DateEntered<2004-01-01

>
> > This completes nicley, without any errors, but I can't figure out how
> > to finish it off.
> > I need to include the Part.Number which coincides to each
> > Stockline.PartId, and limit it to items where the SalesOrder.Date and
> > Quote.Date are either <2000-01-01 or NULL

>
> > PLEASE HELP.
> > -Mo

>
> > Additionally, I want to make sure that the LEFT JOIN's are achieving
> > thier intended purposes.
> > Would the second LEFT JOIN join to the results of the first JEFT JOIN,
> > or the Stockline table?

>
> What would be really helpful is some phpMyAdmin exports of the table
> schemas and a few items of data in the associated INSERT statement
> accompanied by the expected results from that data.- Hide quoted text -
>
> - Show quoted text -


Forgive my nievity, but I never looked into common terminology.
By 'table schemas', do you mean you want all the fields, and a few
records for each table?
And, please clarify what you are loking for in relation to the INSERT
statement. I don't have one in my query, so I'm not sure what you
need.
-Mo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 10:29 AM
Mo
 
Posts: n/a
Default Re: Need help finishing complex query.

On Nov 2, 7:37 am, Mo <goo...@voyagercomponents.com> wrote:
> On Nov 2, 2:00 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>
>
>
>
>
> > On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:

>
> > > Or, at least it seems complex to me.
> > > I need help on my "Dead Stock" report. It seemed pretty simple, but
> > > I'm discovering it is MUCH more complex than I had anticipated.
> > > I'm not quite sure which info you would and wouldn't want, so I'm just
> > > going to lay it ALL out.

>
> > > We need to list all Stocklines which are older than 01/01/2004, and
> > > under Part Numbers which have neither been Quoted nor Sold after
> > > 01/01/2000.

>
> > > This involves these Tables.Fields:

>
> > > Part.PartId
> > > Part.Number

>
> > > Stockline.PartId
> > > Stockline.StockId
> > > Stockline.DateEntered
> > > Stockline.Location
> > > Stockline.Quantity
> > > Stockline.Manufacturer
> > > Stockline.DateCode
> > > Stockline.ConsignmentCode

>
> > > Quote.QuoteId
> > > Quote.Date

>
> > > QuoteItem.QuoteId
> > > QuoteItem.PartId

>
> > > SalesOrder.SalesOrderId
> > > SalesOrder.Date

>
> > > SOItem.SalesOrderId
> > > SOItem.PartId

>
> > > This is what I have so far:

>
> > > SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
> > > Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
> > > Stockline.Manufacturer, Stockline.DateCode, Stockline.ConsignmentCode
> > > FROM Stockline
> > > LEFT JOIN SOItem
> > > ON Stockline.PartId=SOItem.PartID
> > > LEFT JOIN QuoteItem
> > > ON Stockline.PartId=QuoteItem.PartID
> > > WHERE SOItem.PartID is NULL
> > > AND QuoteItem.PartID is NULL
> > > AND Stockline.DateEntered<2004-01-01

>
> > > This completes nicley, without any errors, but I can't figure out how
> > > to finish it off.
> > > I need to include the Part.Number which coincides to each
> > > Stockline.PartId, and limit it to items where the SalesOrder.Date and
> > > Quote.Date are either <2000-01-01 or NULL

>
> > > PLEASE HELP.
> > > -Mo

>
> > > Additionally, I want to make sure that the LEFT JOIN's are achieving
> > > thier intended purposes.
> > > Would the second LEFT JOIN join to the results of the first JEFT JOIN,
> > > or the Stockline table?

>
> > What would be really helpful is some phpMyAdmin exports of the table
> > schemas and a few items of data in the associated INSERT statement
> > accompanied by the expected results from that data.- Hide quoted text -

>
> > - Show quoted text -

>
> Forgive my nievity, but I never looked into common terminology.
> By 'table schemas', do you mean you want all the fields, and a few
> records for each table?
> And, please clarify what you are loking for in relation to the INSERT
> statement. I don't have one in my query, so I'm not sure what you
> need.
> -Mo- Hide quoted text -
>
> - Show quoted text -


Just taking a guess here.
Is this what you were looking for?
(I threw together this comma seperated example. If you need more, or
something else, please advise.)

Part
PartId, Number
0001, PN123
0002, PN456
0003, PN789
0004, PN555

Stockline
PartId, StockId, DateEntered, Location, Quantity, Manufacturer,
DateCode, ConsignmentCode
0001, 101, 2003-10-10, Loc01, 250, Brand1, 0206, Cons12
0001, 121, 2006-05-05, Loc20, 500, Brand6, 0115, Cons01
0002, 180, 2004-03-06, Loc15, 100, Brand2, 0404, Cons12
0003, 216, 2001-11-02, Loc02, 525, Brand1, 9902, Cons06
0004, 514, 2007-06-16, Loc01, 610, Brand8, 0650, Cons04
0004, 410, 2002-12-18, Loc20, 305, Brand8, 9612, Cons03

Quote
QuoteId, Date
400205, 1997-05-15
400470, 2005-08-19

QuoteItem
QuoteId, PartId
400205, 0001
400470, 0001
400470, 0003

SalesOrder
SalesOrderId, Date
100605, 1998-12-30
100850, 2002-07-15

SOItem
SalesOrderId, PartId
100605, 0001
100850, 0002
100850, 0003


Desired results from the qry:
Part.Number, Stockline.PartId, Stockline.StockId,
Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
Stockline.Manufacturer, Stockline.DateCode, Stockline.ConsignmentCode
PN123, 0001, 101, 2003-10-10, Loc01, 250, Brand1, 0206, Cons12
PN555, 0004, 410, 2002-12-18, Loc20, 305, Brand8, 9612, Cons03

As you can see, PN123 was quoted and sold, but that was only prior to
01/01/2000, and PN555 was never quoted or sold.

NOTE: Ultimately, if we've had inactive stock for a long time, and
recieved additional stock recently, it'd be nice to have those on the
report also.
That would mean including StockId #'s 121 and 514 in the results also
(even though they are newer than 01/01/2204) because they are under an
inactive part# which also has old stock.
It would be nice, but not necessary.

Thanks.
-Mo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 10:29 AM
Paul Lautman
 
Posts: n/a
Default Re: Need help finishing complex query.

Mo wrote:
> On Nov 2, 2:00 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>> On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:
>>
>>
>>
>>
>>
>>> Or, at least it seems complex to me.
>>> I need help on my "Dead Stock" report. It seemed pretty simple, but
>>> I'm discovering it is MUCH more complex than I had anticipated.
>>> I'm not quite sure which info you would and wouldn't want, so I'm
>>> just going to lay it ALL out.

>>
>>> We need to list all Stocklines which are older than 01/01/2004, and
>>> under Part Numbers which have neither been Quoted nor Sold after
>>> 01/01/2000.

>>
>>> This involves these Tables.Fields:

>>
>>> Part.PartId
>>> Part.Number

>>
>>> Stockline.PartId
>>> Stockline.StockId
>>> Stockline.DateEntered
>>> Stockline.Location
>>> Stockline.Quantity
>>> Stockline.Manufacturer
>>> Stockline.DateCode
>>> Stockline.ConsignmentCode

>>
>>> Quote.QuoteId
>>> Quote.Date

>>
>>> QuoteItem.QuoteId
>>> QuoteItem.PartId

>>
>>> SalesOrder.SalesOrderId
>>> SalesOrder.Date

>>
>>> SOItem.SalesOrderId
>>> SOItem.PartId

>>
>>> This is what I have so far:

>>
>>> SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
>>> Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
>>> Stockline.Manufacturer, Stockline.DateCode,
>>> Stockline.ConsignmentCode FROM Stockline
>>> LEFT JOIN SOItem
>>> ON Stockline.PartId=SOItem.PartID
>>> LEFT JOIN QuoteItem
>>> ON Stockline.PartId=QuoteItem.PartID
>>> WHERE SOItem.PartID is NULL
>>> AND QuoteItem.PartID is NULL
>>> AND Stockline.DateEntered<2004-01-01

>>
>>> This completes nicley, without any errors, but I can't figure out
>>> how to finish it off.
>>> I need to include the Part.Number which coincides to each
>>> Stockline.PartId, and limit it to items where the SalesOrder.Date
>>> and Quote.Date are either <2000-01-01 or NULL

>>
>>> PLEASE HELP.
>>> -Mo

>>
>>> Additionally, I want to make sure that the LEFT JOIN's are achieving
>>> thier intended purposes.
>>> Would the second LEFT JOIN join to the results of the first JEFT
>>> JOIN, or the Stockline table?

>>
>> What would be really helpful is some phpMyAdmin exports of the table
>> schemas and a few items of data in the associated INSERT statement
>> accompanied by the expected results from that data.- Hide quoted
>> text -
>>
>> - Show quoted text -

>
> Forgive my nievity, but I never looked into common terminology.
> By 'table schemas', do you mean you want all the fields, and a few
> records for each table?
> And, please clarify what you are loking for in relation to the INSERT
> statement. I don't have one in my query, so I'm not sure what you
> need.
> -Mo


If you g into phpMyAdmin, as I mentioned in my post, there is an Export tab.

That allows you to export the structure and data. The structure comes in the
form of CREATE TABLE statements and the data comes in the form of INSERT
statements. That allows me (or others) to quickly setup tables just like
your ones and have the sample data in there too.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 10:29 AM
Mo
 
Posts: n/a
Default Re: Need help finishing complex query.

On Nov 2, 12:59 pm, "Paul Lautman" <paul.laut...@btinternet.com>
wrote:
> Mo wrote:
> > On Nov 2, 2:00 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> >> On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:

>
> >>> Or, at least it seems complex to me.
> >>> I need help on my "Dead Stock" report. It seemed pretty simple, but
> >>> I'm discovering it is MUCH more complex than I had anticipated.
> >>> I'm not quite sure which info you would and wouldn't want, so I'm
> >>> just going to lay it ALL out.

>
> >>> We need to list all Stocklines which are older than 01/01/2004, and
> >>> under Part Numbers which have neither been Quoted nor Sold after
> >>> 01/01/2000.

>
> >>> This involves these Tables.Fields:

>
> >>> Part.PartId
> >>> Part.Number

>
> >>> Stockline.PartId
> >>> Stockline.StockId
> >>> Stockline.DateEntered
> >>> Stockline.Location
> >>> Stockline.Quantity
> >>> Stockline.Manufacturer
> >>> Stockline.DateCode
> >>> Stockline.ConsignmentCode

>
> >>> Quote.QuoteId
> >>> Quote.Date

>
> >>> QuoteItem.QuoteId
> >>> QuoteItem.PartId

>
> >>> SalesOrder.SalesOrderId
> >>> SalesOrder.Date

>
> >>> SOItem.SalesOrderId
> >>> SOItem.PartId

>
> >>> This is what I have so far:

>
> >>> SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
> >>> Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
> >>> Stockline.Manufacturer, Stockline.DateCode,
> >>> Stockline.ConsignmentCode FROM Stockline
> >>> LEFT JOIN SOItem
> >>> ON Stockline.PartId=SOItem.PartID
> >>> LEFT JOIN QuoteItem
> >>> ON Stockline.PartId=QuoteItem.PartID
> >>> WHERE SOItem.PartID is NULL
> >>> AND QuoteItem.PartID is NULL
> >>> AND Stockline.DateEntered<2004-01-01

>
> >>> This completes nicley, without any errors, but I can't figure out
> >>> how to finish it off.
> >>> I need to include the Part.Number which coincides to each
> >>> Stockline.PartId, and limit it to items where the SalesOrder.Date
> >>> and Quote.Date are either <2000-01-01 or NULL

>
> >>> PLEASE HELP.
> >>> -Mo

>
> >>> Additionally, I want to make sure that the LEFT JOIN's are achieving
> >>> thier intended purposes.
> >>> Would the second LEFT JOIN join to the results of the first JEFT
> >>> JOIN, or the Stockline table?

>
> >> What would be really helpful is some phpMyAdmin exports of the table
> >> schemas and a few items of data in the associated INSERT statement
> >> accompanied by the expected results from that data.- Hide quoted
> >> text -

>
> >> - Show quoted text -

>
> > Forgive my nievity, but I never looked into common terminology.
> > By 'table schemas', do you mean you want all the fields, and a few
> > records for each table?
> > And, please clarify what you are loking for in relation to the INSERT
> > statement. I don't have one in my query, so I'm not sure what you
> > need.
> > -Mo

>
> If you g into phpMyAdmin, as I mentioned in my post, there is an Export tab.
>
> That allows you to export the structure and data. The structure comes in the
> form of CREATE TABLE statements and the data comes in the form of INSERT
> statements. That allows me (or others) to quickly setup tables just like
> your ones and have the sample data in there too.- Hide quoted text -
>
> - Show quoted text -


OK, I did that, but after more than 5,400 lines (which is only the
first of 65 tables), I got an error:
#1146 - Table 'voyager1_voyager.AGENTS' doesn't exist.

This is a table which we aren't really using (it was placed there for
our data-migration into MySQL), but I see it in our tables list.
Any suggestions?

Additionally, if we get the whole dump, it will have a bunch of info
in there which I'm sure our company wants to keep as proprietary.
How should we solve this?

Thanks for your help and patience.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 10:29 AM
Mo
 
Posts: n/a
Default Re: Need help finishing complex query.

On Nov 2, 3:51 pm, Mo <goo...@voyagercomponents.com> wrote:
> On Nov 2, 12:59 pm, "Paul Lautman" <paul.laut...@btinternet.com>
> wrote:
>
>
>
>
>
> > Mo wrote:
> > > On Nov 2, 2:00 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> > >> On 2 Nov, 00:03, goo...@voyagercomponents.com wrote:

>
> > >>> Or, at least it seems complex to me.
> > >>> I need help on my "Dead Stock" report. It seemed pretty simple, but
> > >>> I'm discovering it is MUCH more complex than I had anticipated.
> > >>> I'm not quite sure which info you would and wouldn't want, so I'm
> > >>> just going to lay it ALL out.

>
> > >>> We need to list all Stocklines which are older than 01/01/2004, and
> > >>> under Part Numbers which have neither been Quoted nor Sold after
> > >>> 01/01/2000.

>
> > >>> This involves these Tables.Fields:

>
> > >>> Part.PartId
> > >>> Part.Number

>
> > >>> Stockline.PartId
> > >>> Stockline.StockId
> > >>> Stockline.DateEntered
> > >>> Stockline.Location
> > >>> Stockline.Quantity
> > >>> Stockline.Manufacturer
> > >>> Stockline.DateCode
> > >>> Stockline.ConsignmentCode

>
> > >>> Quote.QuoteId
> > >>> Quote.Date

>
> > >>> QuoteItem.QuoteId
> > >>> QuoteItem.PartId

>
> > >>> SalesOrder.SalesOrderId
> > >>> SalesOrder.Date

>
> > >>> SOItem.SalesOrderId
> > >>> SOItem.PartId

>
> > >>> This is what I have so far:

>
> > >>> SELECT Stockline.PartId, Stockline.StockId, Stockline.PartId,
> > >>> Stockline.DateEntered, Stockline.Location, Stockline.Quantity,
> > >>> Stockline.Manufacturer, Stockline.DateCode,
> > >>> Stockline.ConsignmentCode FROM Stockline
> > >>> LEFT JOIN SOItem
> > >>> ON Stockline.PartId=SOItem.PartID
> > >>> LEFT JOIN QuoteItem
> > >>> ON Stockline.PartId=QuoteItem.PartID
> > >>> WHERE SOItem.PartID is NULL
> > >>> AND QuoteItem.PartID is NULL
> > >>> AND Stockline.DateEntered<2004-01-01

>
> > >>> This completes nicley, without any errors, but I can't figure out
> > >>> how to finish it off.
> > >>> I need to include the Part.Number which coincides to each
> > >>> Stockline.PartId, and limit it to items where the SalesOrder.Date
> > >>> and Quote.Date are either <2000-01-01 or NULL

>
> > >>> PLEASE HELP.
> > >>> -Mo

>
> > >>> Additionally, I want to make sure that the LEFT JOIN's are achieving
> > >>> thier intended purposes.
> > >>> Would the second LEFT JOIN join to the results of the first JEFT
> > >>> JOIN, or the Stockline table?

>
> > >> What would be really helpful is some phpMyAdmin exports of the table
> > >> schemas and a few items of data in the associated INSERT statement
> > >> accompanied by the expected results from that data.- Hide quoted
> > >> text -

>
> > >> - Show quoted text -

>
> > > Forgive my nievity, but I never looked into common terminology.
> > > By 'table schemas', do you mean you want all the fields, and a few
> > > records for each table?
> > > And, please clarify what you are loking for in relation to the INSERT
> > > statement. I don't have one in my query, so I'm not sure what you
> > > need.
> > > -Mo

>
> > If you g into phpMyAdmin, as I mentioned in my post, there is an Export tab.

>
> > That allows you to export the structure and data. The structure comes in the
> > form of CREATE TABLE statements and the data comes in the form of INSERT
> > statements. That allows me (or others) to quickly setup tables just like
> > your ones and have the sample data in there too.- Hide quoted text -

>
> > - Show quoted text -

>
> OK, I did that, but after more than 5,400 lines (which is only the
> first of 65 tables), I got an error:
> #1146 - Table 'voyager1_voyager.AGENTS' doesn't exist.
>
> This is a table which we aren't really using (it was placed there for
> our data-migration into MySQL), but I see it in our tables list.
> Any suggestions?
>
> Additionally, if we get the whole dump, it will have a bunch of info
> in there which I'm sure our company wants to keep as proprietary.
> How should we solve this?
>
> Thanks for your help and patience.- Hide quoted text -
>
> - Show quoted text -


I think it just clicked, in regards to your original instructions
regarding the INSERT statements.
Once we get the dump completed, I'll just weed out most of the INSERTs
to just keep some base info which applies.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:32 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 49