wouter0809
Technical User
I've got two tables: item an trial
The answer to the items is saved in table trial.
I want to select those items that haven't been made in the current session.
The answer to the items is saved in table trial.
I used:
select item.item_id, trial.test.session_id
from item left join trial
using(item_id)
where trial.item_id is null
this selects the items that havent been made yet.
It should retrieve all items in a new session
But retrieves only those that haven't been made in the old session.
how can I add an extra line that like:
and trial.session_id="<current_session>"
select item.item_id, trial.test.session_id
from item left join trial
using(item_id)
where trial.item_id is null
and trial.session_id="<current_session>"
this returns: there is no data macthving your request.
can somebody help me out??
thanx
Wouter Pasman
The answer to the items is saved in table trial.
I want to select those items that haven't been made in the current session.
The answer to the items is saved in table trial.
I used:
select item.item_id, trial.test.session_id
from item left join trial
using(item_id)
where trial.item_id is null
this selects the items that havent been made yet.
It should retrieve all items in a new session
But retrieves only those that haven't been made in the old session.
how can I add an extra line that like:
and trial.session_id="<current_session>"
select item.item_id, trial.test.session_id
from item left join trial
using(item_id)
where trial.item_id is null
and trial.session_id="<current_session>"
this returns: there is no data macthving your request.
can somebody help me out??
thanx
Wouter Pasman