Search found 13 matches

by poisonnnn
Tue Mar 20, 2012 12:17 pm
Forum: Databases
Topic: Convert number into symbol in query
Replies: 5
Views: 3705

Re: Convert number into symbol in query

Thank you very much!
Works clean :).

Marek.
by poisonnnn
Tue Mar 20, 2012 10:13 am
Forum: Databases
Topic: Convert number into symbol in query
Replies: 5
Views: 3705

Re: Convert number into symbol in query

Hi b, Mark. Thank you guys for the replies! Both of your scripts worked perfectly, tested. I have another question. In my query there are more than one column with "WHERE..AND.." filters and so one... Sooo... I wanna make my days result in the separate columns in the result, but when I do this way +...
by poisonnnn
Mon Mar 19, 2012 9:48 am
Forum: Databases
Topic: Convert number into symbol in query
Replies: 5
Views: 3705

Convert number into symbol in query

Sorry for bothering you guys. Wanna ask you smth. In LiveCode If I have a result in MySQL like: SELECT days from travel; I get: column1 1234567 123456- 123456- 123---- 12345-7 (days from monday till sunday) Question. How can I make my result in form look like: when i get for example: 1234567 -> i sh...
by poisonnnn
Sat Mar 17, 2012 11:43 am
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

I'm trying to do:
how to use data from other table in the same query for filtering:

SELECT A, B ,C, (SELECT D FROM TABLE2 WHERE C[from table2] < B[from table1]) FROM TABLE1; <-- the stucture of query

help :/
by poisonnnn
Thu Mar 15, 2012 6:44 am
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

What do you mean joined? Thats's the question, how to get data in the same query from other table which will form the data in a query from table 1. Tables are in the same DataBase.
by poisonnnn
Wed Mar 14, 2012 8:14 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

First of all thanks for the replies mwieder :), sorry, I just want to make it work. The query works fine, until i put something like this: put "SELECT isv_laik,atv_laik, atstum ,(SELECT info FROM table_home WHERE info < atstum ) FROM reisas where gal='3' ORDER BY isv_laik" into tSQL So the question ...
by poisonnnn
Wed Mar 14, 2012 7:41 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

In MySQL it's fine.
In LC I don't get any data without revDataFromQuery

put " SELECT atstum FROM reisas" into tSQL
put tSQL into field "ats"

gives me:SELECT atstum FROM reisas.
by poisonnnn
Wed Mar 14, 2012 6:55 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

so again... put "SELECT isv_laik,atv_laik,atstum,(select kaina from tarifai use index (tarifas) where (kg_nuo<'"& sGalutine1 &"' and '"& sGalutine1 &"'<=kg_iki) and (km_nuo< atstum and atstum <=km_iki) as dynamicCol FROM reisas where gal='"& sResaultSave & "'ORDER BY isv_laik" into tSQL put revDataF...
by poisonnnn
Wed Mar 14, 2012 6:21 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

it doesn't. look, I will take a more simple query: put " SELECT atstum FROM reisas where gal='"& sResaultSave & "' ORDER BY isv_laik" into tSQL #put revDataFromQuery(tab, cr, sDatabaseID, tSQL) into tAtstum put tSQL into field "test" field test gives: SELECT atstum FROM reisas where gal='"& sResault...
by poisonnnn
Wed Mar 14, 2012 6:02 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

Hmmm... putting tSQL into a field without evDataFromQuery call gives me the SQL query i've writen.
by poisonnnn
Wed Mar 14, 2012 5:03 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

Hmmm, I've tried something like this as you said: put "SELECT isv_laik,atv_laik,atstum, ( select kaina from tarifai use index (tarifas) where (kg_nuo<'"& sGalutine1 &"' and '"& sGalutine1 &"'<=kg_iki) and (km_nuo< atstum and atstum <=km_iki ) as dynamicCol FROM reisas where gal='"& sResaultSave & "'...
by poisonnnn
Wed Mar 14, 2012 4:09 pm
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

Re: DATABASE MYSQL column automatic values calculated

Thank for the reply: I think... I need to have MySQL making itself a calculation when I do a SELECT. The 4th columns values are from ANOTHER table, but the whole calculation of the query must be with the values of column3 etc. ###this will form a table (filled in my example: column 1,2,3...perhaps I...
by poisonnnn
Wed Mar 14, 2012 10:28 am
Forum: Databases
Topic: DATABASE MYSQL column automatic values calculated
Replies: 19
Views: 11289

DATABASE MYSQL column automatic values calculated

Hello, Need help. I'm new in LiveCode. The problem is, that I have a database, which has 3 colums which are from query normal, but the 4th column in field(table or smth) must take values from rowns on the left and make some calculations with them automaticly.... Any advice ? Please... id distance we...

Go to advanced search