Questions tagged [multiple-value]

172 questions
1
vote
2 answers

IF statement for one variable with multiple values

Is there a better way to write this IF statement for testing multiple options of a variable? <#if PRINTER_PET.RETAILER_NAME = 'BEST BUY' || PRINTER_PET.RETAILER_NAME = 'Best Buy Purchasing LLC'> document 1 <#elseif PRINTER_PET.RETAILER_NAME =…
1
vote
1 answer

Efficiently computing multiple results

Context I am currently optimizing a library for scientific computing. I'm fairly new to Commom Lisp. The functions I use are quite small and execute in approx. 10 ns to a few hundred nanoseconds on an average laptop. The performance already is quite…
1
vote
3 answers

Return a multiple value dictionary within a function into a pretty format

So the first 2 steps I took to come to this point were as follows: I opened a textfile. The print-method provided me with this: ["string1","a","b","c"] ["string2","d","e","f"] ["string3","g","h","i"] ["string4","j","k","l"] I converted these…
Miggl
  • 63
  • 1
  • 8
1
vote
1 answer

mysql database how to deal with fields that contains multiple values

i have MYSQL database where a table have a field that contains multiple values in each cell. where these values are a foreign key of another table. inspection_date: siteID (primary key) employeeID(foreign key) inspectionDate where the emplyee…
Dany 7elo
  • 73
  • 2
  • 10
1
vote
1 answer

Syntax for multiple default parameter call

I am trying to make a "Label Factory" that will help me to produce labels for a project. I have a function getLabel(of type: LabelTypeEnum, _ labelTitle: String? = nil, _ textColor: UIColor? = nil, …
1
vote
2 answers

How to save multiple data in 1 column SQL

I know, there already is similar questions, but I can't find a good answer at my problem. I'm developing a social network, I have all my users in a table, but each users must be able to save multiple post from the website. My Question is: How can I…
lvminia
  • 13
  • 3
1
vote
1 answer

cross table with a column containing multiple values in R

I want to know how many Low, Medium and High of Drama I have, and how many Low, Medium and High of Crime I have in my data frame. Here's a sample of my data frame: genres class_rentabilite Crime,…
Y.P
  • 355
  • 2
  • 12
1
vote
0 answers

How to replace multiple word in a string from select a column where another column is true?

My Query is: $query = $mysqli->query("SELECT col3 FROM table WHERE col3!='' AND col1= 'bond'"); Now I need get all from col1 where col2 is not blank and then col3 value replace with all col1 value like col1 if col1 value exist in…
1
vote
1 answer

Adding multiple values in a query parameter in Access 2007

I have a query in Access that has a parameter for Customer ID. I've set up the parameter like this: Field: CustID Table:cutomer Criterial:[Choose CustID]. However, currently, I'm only able to enter a single value into the parameter. Is there a way…
1
vote
3 answers

IF ELSE in Stored Procedure - Syntax Issue?

For some reason, I can't get the syntax right for this stored procedure. I have 2 variables. The issue is this - When we execute the stored procedure, the user may need to supply 1 integer for a parameter, multiple, or none. I want to allow all…
1
vote
2 answers

Sharepoint Multiple Value Lookup Value

I hope someone can help me out here. I have a SharePoint list with a Choice type lookup field. I'm able to retrieve the selected value with the code below. $("select[title='My field name']").change(function() { alert($(this).val()); …
user643097
  • 127
  • 2
  • 15
1
vote
1 answer

return and edit of multiple variables [JAVA]

i have a problem in my first Game engine so please help me :( There is two part in the first one i will explain the problem and in the second one i will explain my questions . Part I : i have an array (named "World") of object class public Object…
user4836835
1
vote
1 answer

Translate phrase with more than 1 singular/plural value

I have the following phrase and want to translate it. $lifeTime = 'Expires in '.$days.($days == 1 ? ' day ':' days ' ).$h.(($h == 1 ? ' hour ':' hours ' )); My question is: will I need to split the phrase, translate separated and concatenate them ?…
1
vote
1 answer

Comparing values from a string in a MySQL query

I'm having some trouble comparing values found in VARCHAR fields. I have a table with products and each product has volume. I store the volume in a VARCHAR field and it's usually a number (30, 40, 200..) but there are products that have multiple…
b2238488
  • 990
  • 2
  • 15
  • 32
1
vote
1 answer

selecting a specific part of a column from a database(oracle)

the database i am working with has two specific columns that i am interested(among about 130+ other columns). the first column has a lot of different parameter names stored (for each row) separated by vertical bar ( | ) and the following column…
user2954612
  • 23
  • 1
  • 7