Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem understanding this query output

Status
Not open for further replies.

geroid

IS-IT--Management
Apr 9, 2009
9
0
0
IE
Hi
I have a table called docs with 2 columns 'id' and 'text' and have inserted the following information
Code:
INSERT INTO docs VALUES (1, ‘Oracle stuff’);
INSERT INTO docs VALUES (2, ‘more Oracle stuff’);
INSERT INTO docs VALUES (3, ‘SQL Server stuff’);
COMMIT;

I then run the following query as part of a college lab. I can't understand the output or what this query is asking. Can you help? The query is:

Code:
SELECT SCORE(1) FROM docs WHERE CONTAINS (text, ‘Oracle’, 1) > 0;

The output is:

Code:
SCORE(1)
-----------
          4
          4

I don't understand what the two 4s refer to. Can anyone explain
 
the two 4s are the SCORE(1) values of the rows that satisfy the WHERE clause

which would make sense if there were a SCORE function, but there isn't

would you mind showing us your real query, not this oversimplification?

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top