Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Format json file (read and processing it) Pin
Richard Deeming17-Oct-13 8:56
mveRichard Deeming17-Oct-13 8:56 
QuestionDatagrid view problem Pin
Member 1019283517-Oct-13 1:40
Member 1019283517-Oct-13 1:40 
AnswerRe: Datagrid view problem Pin
Chris Quinn17-Oct-13 3:32
Chris Quinn17-Oct-13 3:32 
AnswerRe: Datagrid view problem Pin
thatraja17-Oct-13 4:38
professionalthatraja17-Oct-13 4:38 
AnswerRe: Datagrid view problem Pin
GuyThiebaut17-Oct-13 5:45
professionalGuyThiebaut17-Oct-13 5:45 
Questionread DXF File using VB.NET Pin
osama5000016-Oct-13 22:28
osama5000016-Oct-13 22:28 
AnswerRe: read DXF File using VB.NET Pin
Simon_Whale16-Oct-13 23:01
Simon_Whale16-Oct-13 23:01 
QuestionAlgorithm for matching database records? Pin
Wombaticus15-Oct-13 22:45
Wombaticus15-Oct-13 22:45 
Apologoes if this the wrong forum – could be in “Database”, or even C# - it’s a bit of a cross-over...

The scenario:

I have a database table holding records of items that are flagged according to various key terms held in another table – eg:
keywords table:
ID – integer
sKeyword – string
There are about a dozen of these, which won’t change, with ID’s from 1 to 12.

items table:
ID – integer
iKeywords – Double
(other fields)

The iKeywords number is calculated simply as the sum of 2 ^ keywords.ID for all relevant keywords. A record may be associated with multiple keywords. Thus it is easy to select records matching keywords criteria, and updating records is similarly easy.

The problem:
Give the iKeyword value of a particular item, find other items which are matched with some or all of the keywords of this record, ordered by the number of matching keywords.

The solution...?
Apart from an obvious brute-force approach, I am sure there must be an elegant algorithm (c# or vb .NET preferably) that can do it.... even better a really smart SQL statement, but that’s probably hoping for too much.

Or maybe I should be approaching the database structure differently?
AnswerRe: Algorithm for matching database records? Pin
Richard Deeming16-Oct-13 0:05
mveRichard Deeming16-Oct-13 0:05 
GeneralRe: Algorithm for matching database records? Pin
Wombaticus16-Oct-13 0:16
Wombaticus16-Oct-13 0:16 
QuestionProgram in a window Pin
Member 1027924614-Oct-13 21:57
professionalMember 1027924614-Oct-13 21:57 
AnswerRe: Program in a window Pin
Eddy Vluggen15-Oct-13 0:29
professionalEddy Vluggen15-Oct-13 0:29 
RantRe: Program in a window PinPopular
Richard Deeming15-Oct-13 0:38
mveRichard Deeming15-Oct-13 0:38 
AnswerRe: Program in a window Pin
Ammar_Ahmad16-Oct-13 0:09
Ammar_Ahmad16-Oct-13 0:09 
AnswerRe: Program in a window Pin
Abhinav S16-Oct-13 1:14
Abhinav S16-Oct-13 1:14 
GeneralRe: Program in a window Pin
Dave Kreskowiak16-Oct-13 1:33
mveDave Kreskowiak16-Oct-13 1:33 
QuestionHow to run a program under a window Pin
Member 1027924613-Oct-13 18:24
professionalMember 1027924613-Oct-13 18:24 
AnswerRe: How to run a program under a window Pin
Richard MacCutchan13-Oct-13 20:48
mveRichard MacCutchan13-Oct-13 20:48 
AnswerRe: How to run a program under a window Pin
Abhinav S13-Oct-13 20:57
Abhinav S13-Oct-13 20:57 
Questionerror comes connection properties not initiliaze Pin
Member 1019283511-Oct-13 22:48
Member 1019283511-Oct-13 22:48 
AnswerRe: error comes connection properties not initiliaze Pin
Eddy Vluggen12-Oct-13 2:39
professionalEddy Vluggen12-Oct-13 2:39 
QuestionInstallShield won't install Pin
Member 1026522811-Oct-13 5:57
Member 1026522811-Oct-13 5:57 
AnswerRe: InstallShield won't install Pin
Eddy Vluggen11-Oct-13 21:56
professionalEddy Vluggen11-Oct-13 21:56 
GeneralRe: InstallShield won't install Pin
Member 1026522812-Oct-13 3:38
Member 1026522812-Oct-13 3:38 
GeneralRe: InstallShield won't install Pin
Mycroft Holmes12-Oct-13 3:55
professionalMycroft Holmes12-Oct-13 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.