private ColumnDefinition getdef(Column column) {
        ColumnDefinition newcol = new ColumnDefinition();

        Column c = null;

        if (column.getColumnName().contains("|")) {
            newcol.setColumnName(column.getColumnName());
            return newcol;
        }

        for (SelectExpressionItem e : oldcolnames) {
            if (e.getAlias() != null) {

                if (e.getAlias().equalsIgnoreCase(column.getColumnName())) {
                    Expression exp = e.getExpression();
                    ExpressionEvaluator ev = new ExpressionEvaluator();
                    exp.accept(ev);
                    c = ev.getColumn();
                    break;
                }
            }
        }
        String col;
        ColDataType dt = new ColDataType();
        String datatype;
        for (CreateTable ct : Main.ct) {
            for (Object cd : ct.getColumnDefinitions()) {
                String temp = cd.toString();
                col = temp.split(" ")[0];
                datatype = temp.split(" ")[1];
                if (c.getColumnName().contains(col)) {
                    dt.setDataType(datatype);
                    newcol.setColDataType(dt);
                    newcol.setColumnName(column.getWholeColumnName());
                    break;
                }
            }
        }
        return newcol;
    }