passing query1 into query2

8 views
Skip to first unread message

Simer P

unread,
Feb 24, 2013, 5:35:58 AM2/24/13
to bat...@googlegroups.com
Hey Guys,

How do I do the following in batchFb

        'query1': 'SELECT uid2 FROM friend WHERE uid1 = me()',
        'query2': 'SELECT vid, owner, title, description FROM video WHERE owner IN (SELECT uid2 FROM #query1)'
I can't find an example. On the home page example it says bobsId but I don't see bobsId being declared anywhere ? Or will I have to process this in another get request ? 

Please suggestion.

Thanks


Simer P

unread,
Feb 24, 2013, 9:15:41 AM2/24/13
to bat...@googlegroups.com
Been working too much .. needed a slice of pizza to figure this out.

SELECT vid, owner, title, description FROM video WHERE owner IN (SELECT uid2 FROM friend WHERE uid1 = me())
Too easy !!
Reply all
Reply to author
Forward
0 new messages