sqlite?

6 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

sqlite?
Dummy1912
Hello,

who can help me
with this part i want

can't find anything :(

i tried:
Code: Select all
 "SELECT cash.description, categories_transactions.icon_ FROM(cash) INNER JOIN categories_transactions WHERE cash.description"
but didn't work

i want to load all data and get the icon from the other table.

thanks
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
benji_19994
VIP - Donator
VIP - Donator
Posts: 156
Joined: Mon Apr 16, 2012 3:13 pm

Re: sqlite?
benji_19994
Your go to guy for this would be #smashapps he is a guru with visual basics databases
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: sqlite?
smashapps
Well you have WHERE cash.description

you aren't specifying it's value i.e WHERE cash.description=1

Then it would select the row of data where the cash.description is equal to 1.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: sqlite?
Dummy1912
hi again,

well i want just all records from the table cash :)
so is there any way to get all the data and get the icon_ from categories

i know if you do SELECT * you get all data
but can't be sure from this join part
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: sqlite?
smashapps
You can only use INNER JOIN if there are rows that match in both of the tables for example a First name column

Pretend I have two tables, im going to call one Table1 and other is Table2, Table1 will have the columns FirstName and LastName and table2 will have FirstName PhoneNumber

SELECT table1.FirstName, table1.LastName, table2.FirstName, table2.PhoneNumber FROM table1 INNER JOIN table2 ON table1.FirstName=table2.FirstName

Hopefully that should work otherwise just look up "SQL INNER JOIN"
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: sqlite?
Dummy1912
haha thanks #smashapps
it works :)

+rep :D

:( sorry can't +rep its not allowed :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
6 posts Page 1 of 1
Return to “Help & Support”