Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
OldMySQLUser
Constraint Violating Yak Guru
301 Posts |
Posted - 2009-01-14 : 05:21:37
|
| I have two fulltext search scripts for different tables on the same databasescript 1:use PardataSELECT Distinct notes.Mortgage_NumberFROM [dbo].[format_notes_history] AS notesWHERE FREETEXT(notes.Mortgage_Note_Line_1, 'ack* ANDA/E ANDAfford ANDAgreed Shortfall ANDAIC ANDAOE Order ANDBailiff ANDCC ANDCC Case No ANDCCS ANDCCJ ANDCharge ANDChq ANDCheque received from ANDCheque from Collection Agency ANDCollection Agency ANDCourt ANDCrt ANDDeed of Covenant ANDDSS ANDEquitable Charge ANDF & F S ANDSigned Field Call Report ANDForm N63 ANDFCM ANDFT&C ANDGuarantor ANDI/E ANDSusp AOE Order ANDJDL ANDJudgment ANDLegal Proceedings ANDOffer ANDOffers ANDOutsourced ANDPayment ANDPer Month ANDProposal ANDRDS & Court ANDRW ANDSettlement ANDSigned ANDStatement of Means ANDVoluntary Charge')order by notes_arch.Mortgage_Numberand script 2:use PardataSELECT Distinct notes_arch.Mortgage_NumberFROM [dbo].[format_notes_archive_history] AS notes_archWHERE FREETEXT(notes_arch.notes, 'ack* ANDA/E ANDAfford ANDAgreed Shortfall ANDAIC ANDAOE Order ANDBailiff ANDCC ANDCC Case No ANDCCS ANDCCJ ANDCharge ANDChq ANDCheque received from ANDCheque from Collection Agency ANDCollection Agency ANDCourt ANDCrt ANDDeed of Covenant ANDDSS ANDEquitable Charge ANDF & F S ANDSigned Field Call Report ANDForm N63 ANDFCM ANDFT&C ANDGuarantor ANDI/E ANDSusp AOE Order ANDJDL ANDJudgment ANDLegal Proceedings ANDOffer ANDOffers ANDOutsourced ANDPayment ANDPer Month ANDProposal ANDRDS & Court ANDRW ANDSettlement ANDSigned ANDStatement of Means ANDVoluntary Charge')order by notes_arch.Mortgage_NumberHow can I combine the two scripts in order to create a single (distinct) output of Mortgage Numbers for which the listed words appear in either of the two tables please? |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-01-14 : 05:53:20
|
Use UNION without ALL. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
|
|
|