Search found 27 matches

by parsec
Sat Feb 27, 2016 3:51 pm
Forum: Databases
Topic: format Long SQL query
Replies: 11
Views: 15894

Re: format Long SQL query

Thank you
I will read about the post command. If any one has any pointers were to start it will be very much apreciated
thank you again
John
by parsec
Fri Feb 26, 2016 1:51 pm
Forum: Databases
Topic: format Long SQL query
Replies: 11
Views: 15894

Re: format Long SQL query

Thank you
lets say I like to have all queries on the server side. How can I possible pass the criteria row from LC field to the SQL querie on the server side
for ex:

Code: Select all

SELECT* FROM Projects
WHERE StartDate =   [Enter the start date] /code]
thank you
by parsec
Fri Feb 26, 2016 12:52 pm
Forum: Databases
Topic: format Long SQL query
Replies: 11
Views: 15894

Re: format Long SQL query

Thank you for the Lessons I get the idea. I have several questions?
1 will any of the recommendation impact the sql query execution performance +/=
2 is it good idea or not to call queries that reside on the server side?
thank you again
John
by parsec
Mon Feb 22, 2016 7:09 pm
Forum: Databases
Topic: format Long SQL query
Replies: 11
Views: 15894

Re: format Long SQL query

Hi Klaus
Got it. Can you let me know what && and \ indicate to LC
Thank you for the help.

Funny I had a long night
" deal with long statesmen"
thank you again for all the help
John
by parsec
Sun Feb 21, 2016 11:47 pm
Forum: Databases
Topic: format Long SQL query
Replies: 11
Views: 15894

format Long SQL query

is any way that I format a long query like this one
"Select Inventory.PLU_Number,Inventory.Plu_Description,Brands. Brand_Name,Department_Name,Inventory_Prices.Price From Inventory Inner Join Brands On Inventory.Brand_Number = Brands.Brand_Number Inner Join Departments On Inventory.Department_Number ...
by parsec
Sun Feb 07, 2016 8:24 pm
Forum: Databases
Topic: Need to use single quotes ' '
Replies: 1
Views: 3846

Need to use single quotes ' '

can some one point me to the right direction
Need to use single quotes ' ' in the query bellow in order for my query to work in the MsSQL server as the column is VCHAR and have to include the ' ' like this "SELECT * FROM Inventory_Prices WHERE PLU_Number = " 111111111 '

global gConID
on mouseUp ...
by parsec
Sat Jan 30, 2016 8:52 am
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

Good luck with the moving no problem and thank you for the help I appreciated
what I like to understand and learn is, when i select a line from the grid PO ORDERS to pass the PO NUMBER to this
SQL statement, but I have to be able to change the put "SELECT * FROM PO_Detail WHERE PO_Number =1" into ...
by parsec
Sun Jan 24, 2016 8:23 pm
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

I have read all the need it and understand the concept a bit better I have manage to do this however I do not get any errors and no results as well other than theDataA in to DataGrid 2
where I have gone wrong any help is much apreciated
Thank you

on mouseUp pMouseBtnNum
if pMouseBtnNum is 1 then ...
by parsec
Sat Jan 23, 2016 12:06 am
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

Thank you Simon
I can place the SQl queries into the grid, how ever how I can run the query below when I select a line in grid 1 via the checkbox and in the Where statement will change to the number of the selected row based of the field dbo.PO_Master.PO_Number

Select
StoreTenderOnline.dbo.PO ...
by parsec
Thu Jan 21, 2016 4:51 pm
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

Yes, that is not a problem
by parsec
Thu Jan 21, 2016 11:54 am
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

http://s29.postimg.org/psepnro3b/orders.jpg

Thank you
I like to learn how to tell LC when I check line one with Id (1) to pass the order detail in the second grid

Here is the SQL Query
Select
StoreTenderOnline.dbo.PO_Master.PO_Number,
StoreTenderOnline.dbo.PO_Detail.PO_Number As PO_Number1 ...
by parsec
Thu Jan 21, 2016 2:52 am
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Re: Selecting

Thank you
I do not have and issue with the SQL query. I try do understand how to tell LC when I select a row with Vendor ID "1" to show all data with Vendor ID"1" from table Products do you know of any examples for me to see
thank you
John
by parsec
Wed Jan 20, 2016 3:34 pm
Forum: Databases
Topic: Selecting
Replies: 13
Views: 14565

Selecting

Can some one please let me know or point me to an example to do this
I have two tables Vendors, and the other products. Also I like to have two grids, That when I select a Vendor in one I will see all the Products for the selected Vendor
Thank you
by parsec
Fri Jan 15, 2016 3:49 pm
Forum: Databases
Topic: Insert from a field
Replies: 3
Views: 5217

Re: Insert from a field

thank you for the help
May I ask you if that is the proper and most efficient way to do this, is any other way as well
Thank you again
by parsec
Wed Jan 13, 2016 1:19 am
Forum: Databases
Topic: Insert from a field
Replies: 3
Views: 5217

Insert from a field

I have this code
on MouseUp
global gConID
put field "FName" into tFName
put "INSERT INTO apps (appName) " into tSQL
put "VALUES (" & tFName & ");" after tSQL
revExecuteSQL gConID, tSQL
if the result is not 1 then
answer warning the result
exit to top
end if
end mouseUp
that suppose to ...