I am making an app in IOS which makes use of database stored in .sqlite file. So i'm using core data to access my database.
Here i have a column in the table having names of persons,
What i want is to create a new column using this column's values like a hint(say only initials)
e.g. JOHNNY DEPP -> J##### D###
after googling for hours, i'm still in search of solution to this
Please suggest how to do it ..
either way(core data or .sqlite commands)
any help is appreciated, thanks in advance
Related
My sheet contains volunteer data imported via query from another worksheet. I'm assigning various roles to each volunteer on this sheet.
I'd like to alphabetize by last name to make it easier to locate names. But I need to be able to add names to the "Roster" while keeping the assignments with the correct names.
In my current setup, when I alphabetize, inserting a new name causes misalignment of assignments. Any ideas how I can avoid this?
Here's a test sheet to demo the process. The actual sheet contains dozens of volunteers and multiple data columns for each volunteer.
https://docs.google.com/spreadsheets/d/1KqXRYda9Z0dGJfEACfPMAAtdN1re02-1H0Bmrn9aF58/edit#gid=0
Thanks in advance
Currently the data I want to incorporate into my dictionary is in two fields of an Excel spreadsheet and also in two fields of a database in FileMaker Pro.
Is there an easy way to create a Swift dictionary from this data?
FileMaker field [calculation, text] =
"var dict = [" &
executesql("SELECT keyfield, valuefield FROM table" ;":";"," ) &
"]"
produces code to create a swift dictionary of all records of 'table'.
~jens
edit: 'executesql' requires a rather recent FileMaker version, I think 12 or 13.
I'm not a swift programmer, just a FileMaker dev, but Jens' answer looks like the best one to me. If you're not familiar with FileMaker Pro, the easiest way to apply that might just be by creating a new GLOBAL field in 'table' and making it a "Calculated" field (make sure to set the result type to Text). Here's a sample file: http://cris.lc/d5zjl
I would add that if you're using FileMaker 11, there are plugins (like BaseElements) that will let you perform SQL queries -- the calculation function would be slightly different, though.
Reply here or PM me if you still need help in FileMaker!
I have a column with data values and I want to link it to other columns in the same and different sheets but in the same spreadsheet. This is, having the same data in different columns in a spreadsheet while keeping all linked so updates on the source one would affect all of them.
I've tried with:
=SheetName!ColumnIndex:ColumnIndex
(e.g. =Sheet1!A:A) but, although it works, it is a cell reference not a column reference.
What is the best way to achieve it?
Maybe what you want is just the array version of what you have already tried:
=arrayformula(Sheet1!A:A)
(If not, please clarify!)
I have a spread sheet which has 5 tabs, each tab updates from a SQL data source (not as a pivot table though), is there a way in excel (2010) that gives me the option to save a copy of just the data and not the connection properties ect. Basically the file is 6mb and i need to get it down.
Thanks
Since it does not seem like you have tried anything I have two suggestions:
It could be as simple as:
Grouping Sheets and copying them to a new workbook.
Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
Sheets("Sheet3").Activate
Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Copy
...
Or even:
Range("A1:E20").Select
Selection.Copy
Sheets.Add After:=Sheets(Sheets.Count)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
You have to give those a try and let us know of the output, so then we can adjust those and find a solution that suits you!
I save the workbook with the connections to a new workbook. Go into the new workbook and remove the data connections.
I have a very large excel spreadsheet that consists of a user name, a location, a date, and some fields of numbers, for example.
User,location,date,value1,value2,value3
Steve,NYC,2012,9,1,3
Steve,NYC,2011,3,3,2
Steve,CA,2011,1,2,0
Michael,CA,2012,10,3,2
Michael,CA,2011,10,2,0
How would I go about organizing a rails site such that one can view all the values for a certain user?
For example,
/users/steve/all
would display all the values in descending order of date where user=steve.
/users/steve/nyc
would display all the values in descending order of date where user=steve and location=nyc.
I think I would need to create a users model and import all the data from the excel into the database, but I'm lost about how to do that.
The application, in essence, would be a simple data visualizer. Maybe I have to separate the database and create a user has_many :locations and locations :belongs_to user, I'm not sure. I want the data to be viewed in all sorts of ways—maybe I want to display all the users from a certain location, or view all the locations of a certain user, etc...
I suggest setting up your model within your rails application first. Then, you can just write a rake task probably similar to this question or you can build it from scratch. There's also a railscast.
If you need to directly import from Excel (e.g. the excel sheets are uploade by a user). You can use one of the following gems to importing data from an Excel Sheet
roo Reads new and old excel format (+others)
spreadsheet Reads and writes old exel format
If you only have this one excel sheet it will be far easier to simply export the data to csv and follow the answers given in the stackoverflow question mentioned above.
As for the second part of your question on how to model your database you already had the right idea.
Easiest is to fully model what your domain looks like and transform the data accordingly.