Skip to content
Discussion options

You must be logged in to vote

Hi @ondohotola , I can think of two solutions:

  1. sqlp with joinp:

First, do the SELECT with sqlp:

qsv sqlp DomainExclude.csv DomainsInclude.csv \
  "select DomainsExclude.name, DomainsExclude.appstatus \
   FROM DomainsExclude, DomainsInclude \
   WHERE DomainsInclude.name = DomainsExclude.name \
   ORDER BY DomainsExclude.name" \
  --output DE_appstatus.csv

and then joinp it with DomainsInclude

qsv joinp name DomainsInclude.csv name DE_appstatus.csv --output joined_with_appstatus.csv
  1. create a SQL script and do it with one sqlp operation..

Create a SQL script named Domains.sql:

-- first, create a table from the select
CREATE TABLE DomainsExclude_AppStatus as 
SELECT DomainsExclude.name, D…

Replies: 10 comments 44 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jqnatividad
Comment options

You must be logged in to vote
7 replies
@jqnatividad
Comment options

@derekmahar
Comment options

@ondohotola
Comment options

@derekmahar
Comment options

@jqnatividad
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ondohotola
Comment options

@derekmahar
Comment options

@derekmahar
Comment options

Comment options

You must be logged in to vote
2 replies
@jqnatividad
Comment options

@ondohotola
Comment options

Comment options

You must be logged in to vote
17 replies
@jqnatividad
Comment options

@derekmahar
Comment options

@jqnatividad
Comment options

@derekmahar
Comment options

@derekmahar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@jqnatividad
Comment options

@jqnatividad
Comment options

@derekmahar
Comment options

@jqnatividad
Comment options

@jqnatividad
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@derekmahar
Comment options

@jqnatividad
Comment options

@ondohotola
Comment options

@derekmahar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants